package com.qingke.animal1;

public class Dog extends Animal{
	private int bitePeopleNumber=0;
	
	public Dog(String name,int age,int num){
		super(name,age,num);
	}
	public Dog(String name){
		super(name);
	}
	public void bite(){
		bitePeopleNumber++;
		System.out.println("I bite"+bitePeopleNumber+"people");
	}
	public void run(){
		System.out.println("dog is running");
	}
	public void run(String name){
		System.out.println(name+"dog is running");
	}
	@Override
	public void eat() {
		System.out.println(this.name+"is eating meat!");
	}
}
